package org.thanos.iot.service.user;

import org.thanos.iot.controller.user.UserVo;
import org.thanos.iot.util.response.CommonPage;

public interface UserService {

    void addUser(String loginId, String password, String name, String telephone, String email, Integer roleId);

    void modifyUser(Integer id, String name, String telephone, String email, Integer roleId);

    void modifyUserPassword(Integer userId, String password);

    UserVo discoverUser(Integer userId);

    boolean discoverUserByLoginId(String loginId, Integer id);

    CommonPage<UserVo> discoverUsers(String name, Integer pageNum, Integer pageSize);

    void deleteUser(Integer userId);
}
